import axios from "axios";
axios.defaults.withCredentials = true
export default (url, method, options, headers,)=>{
    return axios(
        url,
        method,
        headers,
        options
    ).then((res)=>{
        return Promise.resolve(res)
    }).catch(err=>{
        return Promise.resolve(err);
    })
}